package cn.lsc.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data

public class Product {
    private Long id;
    private String name;
    private Integer price;
    private  Store store;

    public Product() {
    }

    public Product(Long id, String name, Integer price, Store store) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.store = store;
    }



    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public Store getStore() {
        return store;
    }

    public void setStore(Store store) {
        this.store = store;
    }
}
